export default {
  state: {
    userInfo: {},
    tokenInfo: {},
    currentInfo:{}
  },
  mutations: {
    updateUserInfo(state, payload) {
      state.userInfo = payload.userInfo
    },
    saveUserInfo(state, payload) {
      state.tokenInfo = payload.tokenInfo
    },
    saveCurrentInfo (state,payload) {
      return state.currentInfo = payload.currentInfo
    }
  }
}